﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace SpaceEngine.Assets
{
    public class Marker : Quad
    {
        public Marker(Game1 game, Vector3 position, string color)
            :base(game,position,Vector3.Zero,@"Content\Textures\ring_blue",new Vector2(10,10))
        {
            if (color == "red")
                texturePath = @"Content\Textures\ring_red";
            if(color == "green")
                texturePath = @"Content\Textures\ring_green";
            else
                texturePath = @"Content\Textures\ring_blue";
        }

        public override void Update(GameTime gameTime)
        {
            if(rotation.Y > MathHelper.ToRadians(360))
                rotation.Y -= MathHelper.ToRadians(360);
            if(rotation.Y < 0)
                rotation.Y -= MathHelper.ToRadians(360);
            rotation.Y += MathHelper.ToRadians(1f);

            base.Update(gameTime);
        }

    }
}
